import request from '@/utils/request'

export function distributionWithdrawList(query) {
  return request({
    url: '/withdraw/list',
    method: 'get',
    params: query
  })
}

export function distributionWithdrawdDetail(data) {
  return request({
    url: '/withdraw/detail',
    method: 'post',
    data
  })
}

export function distributionWithdrawUpdate(data) {
  return request({
    url: '/withdraw/update',
    method: 'post',
    data
  })
}

export function distributionList(query) {
  return request({
    url: '/level/list',
    method: 'get',
    params: query
  })
}

export function updateDistribution(query) {
  return request({
    url: '/level/update',
    method: 'get',
    params: query
  })
}

export function disOrderList(query) {
  return request({
    url: '/income/list',
    method: 'get',
    params: query
  })
}

export function updateDisOrder(data) {
  return request({
    url: '/income/update',
    method: 'post',
    data
  })
}
